<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core"  prefix="c"%>
<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title>新增房租信息</title>
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="format-detection" content="telephone=no">
		<link rel="stylesheet" href="${pageContext.request.contextPath}/plugins/layui/css/layui.css" media="all" />
		<link rel="stylesheet" href="${pageContext.request.contextPath}/plugins/font-awesome/css/font-awesome.min.css">
	</head>

	<body>
		<div style="margin: 15px;">
			<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
				<legend>新增房租信息</legend>
			</fieldset>

			<form action="${pageContext.request.contextPath}/RentServlet?action=add" method="post">
					
			
				<div class="layui-form-item">
				       <label class="layui-form-label">租户姓名</label>
						<select name="tid">
						<c:forEach items="${tenant}" var="t">
								<option value="${t.tid}">${t.tname}</option>
						</c:forEach>
						</select>
				</div>
				<div class="layui-form-item">
				       <label class="layui-form-label">房屋</label>
						<select name="hid">
						<c:forEach items="${house}" var="h">
								<option value="${h.hid}">${h.hcommunity}</option>
						</c:forEach>
						</select>
				</div>
				<div class="layui-form-item">
				       <label class="layui-form-label">缴纳金额</label>
						<div class="layui-input-inline">
							<input type="text" name="rcount" class="layui-input">
						</div>
				</div>
				<div class="layui-form-item">
				       <label class="layui-form-label">缴纳时间</label>
						<div class="layui-input-inline">
							<input type="text" name="rdate" class="layui-input">
						</div>
				</div>
				<div class="layui-form-item">
				       <label class="layui-form-label">备注</label>
						<div class="layui-input-inline">
							<input type="text" name="rnote" class="layui-input">
						</div>
				</div>
				<div class="layui-form-item">
			           <label class="layui-form-label"></label>
						<div class="layui-input-inline">
							<input type="submit"   value="提交" class="layui-input">
						</div>
				</div>
				
			</form>
		</div>
	</body>

</html>